<template>
  <div>
    <div class="footer_wrap">
      <!-- 声明式导航  -->
      <!-- 1.a ==> router-link  2. href => to属性 3. #去掉
       -->
      <router-link to="/find" active-class="i-active" exact-active-class="i-exact-active">发现音乐</router-link>
      <router-link to="/my">我的音乐</router-link>
      <router-link to="/friend">朋友</router-link>
    </div>
    <div class="top">
      <!-- 2.配置路由出口，挖个坑，组件会在这个位置显示 -->
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style scoped>
.footer_wrap {
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  width: 100%;
  text-align: center;
  background-color: #333;
  color: #ccc;
}
.footer_wrap a {
  flex: 1;
  text-decoration: none;
  padding: 20px 0;
  line-height: 20px;
  background-color: #333;
  color: #ccc;
  border: 1px solid black;
}
.footer_wrap a:hover {
  background-color: #555;
}
.top {
  padding-top: 62px;
}
/* router-link=active 模糊匹配 to="/my"   /my  /my/one */
/* exact ==> 精确匹配  to="/find" */
.router-link-exact-active{
  background-color: purple !important;
  color:#fff !important;
}
</style>